<template>
	<el-drawer title="项目开标详情" v-model="visible" :size="800" destroy-on-close @closed="$emit('closed')">
		<el-container v-loading="loading">
			<el-main>
				<el-form>
					<el-row :gutter="24">
						<el-col :lg="12">
							<el-form-item label="招标标题" prop="inviteTitle">{{form.inviteTitle}}
							</el-form-item>
						</el-col>
						<el-col :lg="12">
							<el-form-item label="投标企业" prop="entName">{{form.entName}}
							</el-form-item>
						</el-col>
					</el-row>
					<el-row :gutter="24">
						<el-col :lg="12">
							<el-form-item label="中标金额" prop="amount">{{form.amount}}
							</el-form-item>
						</el-col>
						<el-col :lg="12">
							<el-form-item label="中标日期" prop="occurTime">{{form.occurTime}}
							</el-form-item>
						</el-col>
					</el-row>
					<el-row :gutter="24">
						<el-col :lg="12">
							<el-form-item label="投标评分" prop="score">{{form.score}}
							</el-form-item>
						</el-col>
						<el-col :lg="12">
							<el-form-item label="开标单位" prop="sendOrg">{{form.sendOrg}}
							</el-form-item>
						</el-col>
					</el-row>
					<el-form-item label="备注说明" prop="remark">{{form.remark}}</el-form-item>
				</el-form>
				<el-footer style="text-align: center;">
					<el-button @click="visible=false">关闭</el-button>
				</el-footer>
			</el-main>
		</el-container>
	</el-drawer>
</template>

<script>
export default {
	emits: ['success', 'closed'],
	components: {
	},
	data() {
		return {
			loading: false,
			form: {
				recordId:'',
				inviteTitle: '',
				entName: "",
				amount:0,
				occurTime: '',
				score: '',
				remark:'',
				sendOrg:''
			},
			visible: false,
			isSaveing: false,
		}
	},
	mounted() {

	},
	methods: {
		//显示
		open(model){
			this.model=model;
			this.visible = true;
			return this;
		},
		//表单注入数据
		setData(data){
			this.form.recordId = data.recordId
			this.form.inviteTitle = data.inviteTitle
			this.form.entName = data.entName
			this.form.amount = data.amount
			this.form.occurTime = data.occurTime
			this.form.score = data.score
			this.form.remark = data.remark
			this.form.sendOrg = data.sendOrg
		},
	}
}
</script>

<style>
</style>
